<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3">
            <?php echo $this->partial('choix/menu.phtml', array('num_vente' => $this->num_vente));?>
            <!--/.well -->
        </div>
        <!--/span-->
        <div class="span9">
            <div class="wrap">
                <div id="main-content">
                	<div class="top-link">
                	    <a href="<?php echo $this->baseUrl('admin/series/new/?num_vente=' . $this->numVente) ?>">Ajout</a>
                	    | <a href="<?php echo $this->baseUrl('admin/series') ?>/?archive=1&num_vente=<?php echo $this->numVente?>">Séries archivées</a>
                	    | <a href="<?php echo $this->baseUrl('admin/series') ?>/?archive=0&num_vente=<?php echo $this->numVente?>">Séries non archivées</a>
            	    </div>
                    <table>
                        <thead style="width:100%">
                            <tr>
                                <th>Archivé ?</th>
                                <th>Série</th>
                                <th>Editer</th>
                                <th>Supprimer</th>
                            </tr>
                        </thead>
                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <?php if(count($this->paginator) > 1) :?>
                                        <?php echo $this->paginationControl($this->paginator, 'Sliding', '_pagination.phtml'); ?>
                                    <?php endif;?>
                                    <!-- End .pagination -->

                                    <div class="clear"></div>
                               </td>
                            </tr>
                        </tfoot>
                        <tbody style="width:100%">
                            <?php foreach($this->paginator as $row):?>
                            <tr>
                                <td>
                                    <a name="<?php echo $row['p_series'] ?>"></a>
                                <?php if($row['archive'] == 1) : ?>
                        			<img src="<?php echo $this->baseUrl('images/package.png')?>" border="0" alt="Archivé" />
                        		<?php endif;?>
                        		</td>
                                <td style="text-align:left"><?php echo stripslashes($row['titre']); ?></td>
                                <td>
                                	<a href="<?php echo $this->baseUrl('admin/series/edit') ?>/?id=<?php echo $row['p_series'] ?>&num_vente=<?php echo $this->numVente ?>"><img src="<?php echo $this->baseUrl('images/pencil.png') ?>" /></a>
                                </td>
                                <td>
                                	<a href="<?php echo $this->baseUrl('admin/series/delete') ?>/?id=<?php echo $row['p_series'] ?>&num_vente=<?php echo $this->numVente ?>" class="delete-item" id="<?php echo $row['p_series']?>"><img src="<?php echo $this->baseUrl() ?>/images/cross.png"></a>
                                </td>
                            <?php endforeach ?>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <!--/row-->
        </div>
        <!--/span-->
    </div>
    <!--/row-->
</div>